<template>
  <el-checkbox-group v-model="checkList">
    <el-checkbox :label="item.id" v-for="(item,index) in list" :key="index">{{item.name}}</el-checkbox>
  </el-checkbox-group>
</template>

<script>
export default {
  name: "apiList",
  props:{
    list:{
      default:()=>[]
    }
  },
  methods:{
    setData(data){
      this.checkList = data.filter(x=>{return x.status == 1}).map(x=>x.id)
    },
  },
  data(){
    return {
      checkList:[]
    }
  },
}
</script>

<style scoped>

</style>